<?php
$m1 = memory_get_usage();
$t1 = microtime();
$table =  '<table border="1" width="50%" align="center" cellpadding="10">';

  for ($i = 1; $i <=15 ; $i++)
  {
    $color = ($i%2==0)?"yellow":"pink";
  $table .= '<tr>
    <td style="background-color:'.$color.'">
    Data '.$i.'
    </td>
  </tr>';

  }//end for

$table .= '</table>';
echo $table;
unset($table);
$m2 = memory_get_usage();
sleep(1);
$t2 = microtime();
echo $m2-$m1;
echo "<hr>";
echo "Time Taken:".($t2-$t1);
